home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-09-13 | 1.1 KB | 60 lines | [TEXT/PJMM] |
- unit SetValues;
-
- interface
-
- uses
- ParserGlobals;
-
- procedure setvalues (var nodetable: hdlnoderecord; var numnodes, numvariables: integer);
-
-
- implementation
-
- procedure setvalues;
-
- var
- i, j, l, m: integer;
-
-
- begin
-
- i := 1;
- while i <= numnodes do
- begin
- l := numnodes + 1 - i;
- j := 1;
- while j <= numvariables do
- begin
- m := numvariables + 1 - j;
-
- if (nodetable^^[l].lop.index = strvar^^[m]) then
- begin
- nodetable^^[l].lop.index := stringof(val^^[m] : 30 : 20);
- nodetable^^[l].loptype := strvartokentype^^[m];
- end;
- if (nodetable^^[l].rop.index = strvar^^[m]) then
- begin
- nodetable^^[l].rop.index := stringof(val^^[m] : 30 : 20);
- nodetable^^[l].roptype := strvartokentype^^[m];
- end;
- j := j + 1;
- end;
- i := i + 1;
- end;
-
-
- i := 1;
- while i <= numnodes do
- begin
- l := numnodes + 1 - i;
- if nodetable^^[l].lop.index = 'pi' then
- nodetable^^[l].lop.index := stringof(pivalue : 30 : 20);
- if nodetable^^[l].rop.index = 'pi' then
- nodetable^^[l].rop.index := stringof(pivalue : 30 : 20);
- i := i + 1;
- end;
-
- end;
-
-
- end.